package com.base.common;

import java.math.BigDecimal;

/**
 * 文件名称: CommonConstants.java 内容摘要:
 * @author: yanghao
 * @version: 1.0
 * @Date: 2015-4-16
 */

final public class CommonConstants {
	
	/**
	 * 用于数据传输的token
	 */
	public static final String TOKEN = "ajw2015@win";
	/**
	 * 	Access过期时间设置
	 */
	public static final long EXPIREDTIME = 24*60*60*1000;//默认生成时间1天
	
	// 一年的毫秒数 60*60*1000*24
	public final static long YEAR_MILLIS = 86400000*365;
	/**
	 * 	缓存过期时间设置
	 */
	public static final int CACHEEXPIREDTIME = 2*60*60;//默认2个小时
	/**
	 * 
	 * 逻辑删除合法性
	 */
	public static final int ENABLE = 0; // 合法
	/**
	 * 返回状态200 - 499 都可以认为是成功 | >=500 都可以认为是异常/失败
	 */
	public static final int STATE_SUCCESS = 200; // 执行成功
	public static final int STATE_FAIL = 500; // 常规失败
	public static final int STATE_SESSION_FAIL = 798; // session失败
	public static final int STATE_EXCEPTION = 505; // 系统异常
	public static final int STATE_NOT_LOGIN = 501; // 用户未登
	public static final int STATE_USER_EXIST = 503; // 用户已存
	public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
	public static final String DATE_FORMAT_SIMPLE = "yyyy-MM-dd";

	/**
	 * 返回标识 
	 */
	public static final String SIGN_RTN_MSG = "message";
	public static final String SIGN_RTN_DATA = "data";
	public static final String SIGN_RTN_STATTE = "state";
	/**
	 * 数据导入标识
	 */
	public final static String INPUT_RESULTKEY = "INPUT_RESULT";
	public final static String INPUT_LIST_SIGN_ERROR = "INPUT_LIST_SIGN_ERROR";
	public final static int LIMITIPUT = 10000; //限制导入条数
	public static final String SESSION_SECURITY_CODE = "SESSION_SECURITY_CODE";
	public static final int USER_MANGER = 1;
	public static final int USER_ADMIN = 2;
	public static final String SESSION_MANAGE_USER = "SESSION_MANAGE_USER";
	/**
	 * 短信参数
	 */
	public static final String ALLKEY = "888888";//万能钥匙
	public static final String SMS_URL = "http://222.73.117.158/msg/";//应用地址
	public static final String SMS_ACCOUNT = "Wmxx888";//账号
	public static final String SMS_PWD = "Wmxx888888";//密码
	//String mobiles = "18674863295";//手机号码，多个号码使用","分割
	public static final String SMS_MODEL = "亲爱的用户，您的验证码是${code}，5分钟内有效。";//短信内容
	public static final boolean SMS_NEEDSTATUS = true;//是否需要状态报告，需要true，不需要false
	public static final String SMS_PRODUCT = null;//产品ID
	public static final String SMS_EXTNO = null;//扩展码
	/**
	 * 验证码
	 */
	public final static   int IMGTYPE = 1;//图片
	public final static   int BMGTYPE = 2;
	public final static   int SELFTYPE = 3;//公司
	
}
